#include "EleValve.h"

void ele_valve_change_flag(EleValve * ev) {
    if (ev->valve_flag == ELEVALVE_START) {
        ev->valve_flag = ELEVALVE_STOP;
    } else if (ev->valve_flag == ELEVALVE_STOP) {
        ev->valve_flag = ELEVALVE_START;
    }
}

void ele_valve_set_flag(EleValve * ev, u8 state) {
    ev->valve_flag = state;
}
